#!/usr/bin/env bash
username="ubuntu"
i=0
for line in `cat ip.txt`
do
	i=$(($i+1))  
	ssh $username@$line "echo $i > /tmp/my_id"
done
